package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author 剩xia的盛夏
 * @date 2023/02/24 16:16
 */
@Data
@ApiModel("")
public class Reply  implements Serializable {

    private static final long serialVersionUID = 2892248514883451461L;

    @ApiModelProperty(value = "", example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "被回复的评论id", example = "1")
    private Integer commentId;

    @ApiModelProperty(value = "被回复的评论id", example = "1")
    private Integer replyId;

    private Integer level;

    private Integer gid;

    private Integer tid;

    @ApiModelProperty(value = "null表示无引用比赛", example = "1")
    private Integer cid;

    @ApiModelProperty(value = "null表示无引用讨论", example = "1")
    private Integer did;

    @ApiModelProperty(value = "发起回复的用户id", example = "1")
    private Integer fromUid;

    @ApiModelProperty(value = "发起回复的用户名")
    private String fromName;

    @ApiModelProperty(value = "发起回复的用户头像地址")
    private String fromAvatar;

    @ApiModelProperty(value = "发起回复的用户角色")
    private String fromRole;

    @ApiModelProperty(value = "被回复的用户id", example = "1")
    private Integer toUid;

    @ApiModelProperty(value = "被回复的用户名")
    private String toName;

    @ApiModelProperty(value = "被回复的用户头像地址")
    private String toAvatar;

    @ApiModelProperty(value = "回复的内容")
    private String content;

    @ApiModelProperty(value = "是否封禁或逻辑删除该回复 0否 1是", example = "1")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
